From: Sam Steingold Date: Tue, 7 Nov 2017 15:46:33 +0000 (-0500) Subject: Mark flymake-diagnostic-functions as save to set locally to nil. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~19^2~6570 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=c6b95584fc888bf566d42847d78447ddea60972a;p=emacs.git Mark flymake-diagnostic-functions as save to set locally to nil. * lisp/progmodes/flymake.el (flymake-diagnostic-functions): Set `safe-local-variable' property to `null'. Now one can disable flymake-mode locally in a file by setting `flymake-diagnostic-functions' to nil, see `(Emacs)File Variables'. --- diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 1048bc50655..19dac81fe6d 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el @@ -407,6 +407,8 @@ Currently accepted REPORT-KEY arguments are: * `:force': value should be a boolean suggesting that Flymake consider the report even if it was somehow unexpected.") +(put 'flymake-diagnostic-functions 'safe-local-variable #'null) + (defvar flymake-diagnostic-types-alist `((:error . ((flymake-category . flymake-error)))